package com.fancyy.scm.util;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class Util4View {
	
	/**
	 * 根据view的不同类型 设置相对应的值
	 * @param value
	 * @param view
	 */
	public static void setValueToView(Object value, View view) {
		if (view instanceof TextView) {
			TextView v = (TextView)view;
			if (value == null) {
				v.setText("");
			} else {
				v.setText(value.toString());
			}
		} else if (view instanceof ImageView) {
//			AQuery query = new AQuery(view);
//			query.image((String)value, false, true);
		}
	}
}
